import Vue from 'vue'
import { library } from '@fortawesome/fontawesome-svg-core'
import * as solidSvgIcon from '@fortawesome/free-solid-svg-icons'
import * as brandsSvgIcon from '@fortawesome/free-brands-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

export default function setupFontAwesomePlugin () {
  console.log('solidSvgIcon', solidSvgIcon)

  library.add(solidSvgIcon.faTextHeight)
  library.add(solidSvgIcon.faAppleWhole)
  library.add(solidSvgIcon.faCircleInfo)
  library.add(solidSvgIcon.faYenSign)

  library.add(brandsSvgIcon.faRProject)
  Vue.component('font-awesome-icon', FontAwesomeIcon)
}
